﻿namespace Ami
{
	using System;

	public sealed class AmiException : Exception
	{
		public AmiException()
		{
		}

		public readonly Int32? Line;

		new public readonly Byte[] Data;

		public AmiException( String message, Byte[] data = null )
			: base( message )
		{
			this.Data = data;
		}

		public AmiException( String message, Int32 line, Byte[] data = null )
			: base( message )
		{
			this.Line = line;
			this.Data = data;
		}
	}
}
